home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 4
/
Merciful - Disc 4.iso
/
software
/
p
/
powermanagerv1.4cra.lha
/
PM
/
Install PowerManager
< prev
next >
Wrap
Text File
|
1997-03-19
|
3KB
|
132 lines
; PowerManager Install Script 1.4
(set blankerdir "nowhere")
(set sourcedir "nowhere")
(set
progdir
(askdir
(prompt "Where should the PowerManager program be installed?")
(default "sys:WBStartup")
(help "It is recommended that you install this to your Workbench startup directory for automatic running on bootup.")
)
)
(copyfiles
(source "PowerManager Install:")
(dest progdir)
(pattern "PowerManager")
(files)
(infos)
)
(if
(askbool
(prompt "Do you wish to install the online help? (PowerManager.guide)")
(help "This will enable you to use the context sensitive help feature.")
(default 1)
)
(if
(= (getassign "HELP") "")
(copyfiles
(source "PowerManager Install:")
(dest "S:")
(pattern "PowerManager.guide")
(files)
)
(copyfiles
(source "PowerManager Install:")
(dest "HELP:")
(pattern "PowerManager.guide")
(files)
(infos)
)
)
)
(if
(askbool
(prompt "Do you want to install the external blanker modules?")
(help "These are completely optional. If you don't install them, however, you can only use the DPMS blankers.")
(default 1)
)
(
(set
blankerdir
(askdir
(prompt "Select a location for your blankers. (A directory called 'Blankers' will be created there)")
(default "sys:")
(help "The blankers can go wherever you want them.")
)
)
(set
blankerdir
(tackon blankerdir "Blankers")
)
(tooltype
(dest (tackon progdir "PowerManager"))
(settooltype "BLANKERS" blankerdir)
)
(makedir blankerdir)
(copyfiles
(prompt "Which blankers do you want installed?")
(help "The blankers are all small. You will probably want to install them all.")
(source "PowerManager Install:Blankers")
(dest blankerdir)
(pattern "#?")
(confirm)
)
(set
installsource
(askbool
(prompt "Install C and Assembly source for blankers?")
(help "This is only of interest to programmers. The source is 78k.")
(default 0)
)
)
(if
(= installsource 1)
(
(set
sourcedir
(askdir
(prompt "Where should the blanker source be installed? (A directory called BlankerSource will be created there)")
(default blankerdir)
(help "Put these wherever you like")
)
)
(set
sourcedir
(tackon sourcedir "BlankerSource")
)
(copyfiles
(source "PowerManager Install:BlankerSource")
(dest sourcedir)
(pattern "#?")
)
)
)
)
)
(if
(askbool
(prompt "Do you wish to have PowerManager started now?")
(help "This will save you the trouble of doing it yourself.")
(default 1)
)
(
(set
runcmd
(tackon progdir "PowerManager")
)
(run ("run >NIL: <NIL: \"%s\" \"BLANKERS=%s\"" runcmd blankerdir))
)
)
(set @default-dest progdir)
(exit
("The blankers have been installed to %s.\nThe source has been installed to %s." blankerdir sourcedir)
)